Fixed: If can’t add child, don’t add to child info
authorDaniel Boles <dboles@src.gnome.org>
Thu, 12 Oct 2017 13:05:09 +0000 (14:05 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Fri, 13 Oct 2017 08:50:19 +0000 (09:50 +0100)
commitbe5a7b2db2d8f4c8efa18f4ad2764a64163948d9
tree92965da8c74eeaecc3e4e0ddd9baa0b4fcaff775
parent9dde11bdea6a330ed582edb6e1fa050916684288
Fixed: If can’t add child, don’t add to child info

If the call to set_parent() failed, we were still adding the child to
the internal list of children, despite that it was not really added.
That meant we could later try to do invalid stuff with that non-child.

Fix that by asserting and giving up if the child that the user is
attempting to add is already parented.

https://bugzilla.gnome.org/show_bug.cgi?id=701296
gtk/gtkfixed.c